<div class="bm mdcp">
	<!--{if $_G[fid] && $_G['forum']['ismoderator']}-->

		<h1 class="cl">
			<span class="z">
				<!--{if $op == 'editforum'}-->{lang mod_option_forum_edit}<!--{elseif $op == 'recommend'}-->{lang mod_option_forum_recommend}<!--{/if}-->
				<!--{if $modforums['fids']}--> -&nbsp;
			</span>
			<span class="ftid">
				<select name="fid" id="fid" width="150" class="ps" change="location.href='{$cpscript}?mod=modcp&action=$_G[gp_action]&op=$op&fid='+$('fid').value">
					<!--{loop $modforums[list] $id $name}-->
					<option value="$id" {if $id == $_G[fid]}selected{/if}>$name</option>
					<!--{/loop}-->
				</select>
			</span>
			<!--{else}-->
				{lang mod_message_forum_nopermission}
			<!--{/if}-->
		</h1>
	<!--{/if}-->

	<!--{if $_G[fid] && $_G['forum']['ismoderator']}-->

		<!--{if $op == 'editforum'}-->
			<script type="text/javascript">
				var allowbbcode = allowimgcode = 1;
				var allowhtml = forumallowhtml = allowsmilies = 0;
				function parseurl(str, mode) {
					str = str.replace(/([^>=\]"'\/]|^)((((https?|ftp):\/\/)|www\.)([\w\-]+\.)*[\w\-\u4e00-\u9fa5]+\.([\.a-zA-Z0-9]+|\u4E2D\u56FD|\u7F51\u7EDC|\u516C\u53F8)((\?|\/|:)+[\w\.\/=\?%\-&~`@':+!]*)+\.(jpg|gif|png|bmp))/ig, mode == 'html' ? '$1<img src="$2" border="0">' : '$1[img]$2[/img]');
					str = str.replace(/([^>=\]"'\/@]|^)((((https?|ftp|gopher|news|telnet|rtsp|mms|callto|bctp|ed2k):\/\/)|www\.)([\w\-]+\.)*[:\.@\-\w\u4e00-\u9fa5]+\.([\.a-zA-Z0-9]+|\u4E2D\u56FD|\u7F51\u7EDC|\u516C\u53F8)((\?|\/|:)+[\w\.\/=\?%\-&~`@':+!#]*)*)/ig, mode == 'html' ? '$1<a href="$2" target="_blank">$2</a>' : '$1[url]$2[/url]');
					str = str.replace(/([^\w>=\]:"'\.\/]|^)(([\-\.\w]+@[\.\-\w]+(\.\w+)+))/ig, mode == 'html' ? '$1<a href="mailto:$2">$2</a>' : '$1[email]$2[/email]');
					return str;
				}
			</script>
			<div class="exfm">
				<script type="text/javascript" src="{$_G[setting][jspath]}bbcode.js?{VERHASH}"></script>
				<form method="post" autocomplete="off" action="{$cpscript}?mod=modcp&action=$_G[gp_action]&op=$op">
					<input type="hidden" name="formhash" value="{FORMHASH}">
					<input type="hidden" name="fid" value="$_G[fid]">
					<table cellspacing="0" cellpadding="0">
						<tr>
							<th width="15%" valign="top">{lang forum_description}:</th>
							<td width="60%">
								<div id="descpreview"></div>
								<div class="tedt">
									<div class="bar">
										<div class="y"><a href="javascript:;" onclick="$('descpreview').innerHTML = bbcode2html($('descmessage').value)">{lang memcp_profile_preview}</a></div>
										{eval $seditor = array('desc', array('bold', 'color', 'img', 'link'));}
										{subtemplate common/seditor}
									</div>
									<div class="area">
										<textarea id="descmessage" name="descnew" rows="8" class="pt">$_G['forum']['description']</textarea>
									</div>
								</div>
							</td>
							<td width="3%"></td>
							<td width="22%">
								{lang discuzcode} {lang enabled}<br />
								{lang post_imgcode} {lang enabled}<br />
								{lang post_html} {lang disabled}<br />								
							</td>
						</tr>
						<tr>
							<th valign="top">{lang forum_rules}:</th>
							<td>
								<div id="rulespreview"></div>
								<div class="tedt">
									<div class="bar">
										<div class="y"><a href="javascript:;" onclick="$('rulespreview').innerHTML = bbcode2html($('rulesmessage').value)">{lang memcp_profile_preview}</a></div>
										{eval $seditor = array('rules', array('bold', 'color', 'img', 'link'));}
										{subtemplate common/seditor}
									</div>
									<div class="area">
										<textarea id="rulesmessage" name="rulesnew" class="pt" rows="8" {if !$alloweditrules}disabled="disabled" readonly="readonly"{/if}>$_G['forum']['rules']</textarea>
									</div>
								</div>
								<!--{if !$alloweditrules}-->
								<div>{lang forum_not_allow}</div>
								<!--{/if}-->
							</td>
							<td></td>
							<td>
								{lang discuzcode} {lang enabled}<br />
								{lang post_imgcode} {lang enabled}<br />
								{lang post_html} {lang disabled}<br />								
							</td>
						</tr>
						<tr>
							<td>&nbsp;</td>
							<td colspan="3"><button type="submit" class="pn" name="editsubmit" value="true"><strong>{lang submit}</strong></button></td>
						</tr>
					</table>
				</form>
				<!--{if $forumupdate}-->
					<div class="notice">{lang mod_message_forum_update}</div>
				<!--{/if}-->
			</div>

		<!--{elseif $op == 'recommend'}-->
				<script type="text/javascript" src="{$_G[setting][jspath]}forum_moderate.js?{VERHASH}"></script>
				<!--{if $threadlist}-->
					<form method="post" autocomplete="off" action="{$cpscript}?mod=modcp&action=$_G[gp_action]&show=$show">
						<input type="hidden" name="formhash" value="{FORMHASH}" />
						<input type="hidden" name="op" value="$op" />
						<input type="hidden" name="page" value="$page" />
						<input type="hidden" name="fid" value="$_G[fid]" />
						<input type="hidden" name="check" value="$check" />
						<table cellspacing="0" cellpadding="0" class="dt">
							<thead>
								<tr>
									<th class="c"></th>
									<th>{lang displayorder}</th>
									<th>{lang subject}</th>
									<th>{lang author}</th>
									<th>{lang recommend_moderator}</th>
									<th>{lang mod_forum_recommend_expiration}</th>
									<th></th>
								</tr>
							</thead>
							<!--{loop $threadlist $thread}-->
								<tr>
									<td><input{if $_G['forum']['modrecommend']['sort'] == 1} readonly{/if} type="checkbox" name="delete[]" value="$thread[tid]" class="pc" /></td>
									<td><input{if $_G['forum']['modrecommend']['sort'] == 1} readonly{/if} type="text" size="3" name="order[{$thread[tid]}]" value="$thread[displayorder]" class="px" /></td>
									<td><input{if $_G['forum']['modrecommend']['sort'] == 1} readonly{/if} type="text" name="subject[{$thread[tid]}]" value="$thread[subject]" class="px" /></td>
									<td>$thread[authorlink]</td>
									<td>$thread[moderatorlink]</td>
									<td><input type="text" value="{$thread[expiration]}" class="px" name="expirationrecommend[{$thread[tid]}]" id="expirationrecommend" autocomplete="off" {if $_G['forum']['modrecommend']['sort'] == 1} readonly{else} onclick="showcalendar(event, this, true)"{/if} /></td>
									<td><!--{if $_G['forum']['modrecommend']['sort'] != 1}--><a href="javascript:;" onclick="showWindow('mods', 'forum.php?mod=topicadmin&optgroup=1&action=moderate&operation=recommend&frommodcp=2&show={$show}&tid={$thread[tid]}')">{lang more_settings}</a><!--{/if}--></td>
								</tr>
							<!--{/loop}-->
							<tr class="bbn">
								<td><label for="chkall"><input class="pc" type="checkbox" id="chkall" name="chkall" onclick="checkall(this.form)" /> {lang delete_check}</label></td>
								<td colspan="6"><button type="submit" name="editsubmit" value="yes" class="pn"><strong>{lang mod_forum_recommend_list}</strong></button></td>
							</tr>
						</table>
					</form>
				<!--{else}-->
					<div class="emp">{lang search_nomatch}</div>
				<!--{/if}-->

			<!--{if !empty($reportlist[pagelink])}--><div class="pages_btns">$reportlist[pagelink]</div><!--{/if}-->
			<!--{if $listupdate}-->
				<div class="notice">{lang mod_message_forum_updaterecommend}</div>
			<!--{/if}-->

		<!--{/if}-->

	<!--{/if}-->
</div>
<script type="text/javascript" reload="1">
	simulateSelect('fid');
</script>
<script type="text/javascript" src="{$_G[setting][jspath]}forum_calendar.js?{VERHASH}"></script>